package com.alongstudio.account.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;


/**
 * 项目
 * 
 * @ClassName: Project
 * @Description: TODO(这里用一句话描述这个类的作用)
 * @author 安陈琳
 * @date Nov 30, 2011 11:22:42 AM
 * 
 */
@Entity
@Table(name = "tbl_project")
public class Project {
	@Id
	@Column(name = "id", length=32)
	@GeneratedValue(generator = "identityGenerator")
	@GenericGenerator(name = "identityGenerator", strategy = "com.alongstudio.account.commons.utils.IdentityGenerator")
	private String id;
	@Column(name = "project_name", length = 50)
	private String projectName;
	@ManyToOne
	@JoinColumn(name = "fk_client_user_id")
	private ClientUser clientUser;// 系统用户
	@Column(name = "create_time")
	private Date createTime;
	@Column(name = "update_time")
	private Date updateTime;
	
	
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getProjectName() {
		return projectName;
	}
	public void setProjectName(String projectName) {
		this.projectName = projectName;
	}
	public ClientUser getClientUser() {
		return clientUser;
	}
	public void setClientUser(ClientUser clientUser) {
		this.clientUser = clientUser;
	}
	
}
